package com.stars.services.impl.system;

import com.stars.dao.mapper.system.SystemPermissionRelationMapper;
import com.stars.entity.sys.SystemPermissionRelation;
import com.stars.services.impl.BaseAccessServiceImpl;
import com.stars.services.system.PermissionRelationAccessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author :dj
 * @version : 1.0.0
 * @description
 * @Date 2019-01-05 12:07
 * @note
 */
@Service
public class PermissionRelationAccessServiceImpl extends BaseAccessServiceImpl<SystemPermissionRelationMapper, SystemPermissionRelation> implements PermissionRelationAccessService {
    @Autowired
    private SystemPermissionRelationMapper systemPermissionRelationMapper;

    @Override
    public SystemPermissionRelation findByRelation(SystemPermissionRelation systemPermissionRelation) throws Exception {
        return systemPermissionRelationMapper.findByRelation(systemPermissionRelation);
    }
}
